package com.itheima.crm.dao;

import java.util.List;

import com.itheima.crm.pojo.Customer;
import com.itheima.crm.pojo.QueryVo;

public interface CustomerMapper {
	/**
	 * 根据queryVo分页查询数据
	 * 
	 * @param queryVo
	 * @return
	 */
	List<Customer> queryCustomerByQueryVo(QueryVo queryVo);

	/**
	 * 根据queryVo查询数据条数
	 * 
	 * @param queryVo
	 * @return
	 */
	int queryCountByQueryVo(QueryVo queryVo);
	
	Customer queryCustomerById(Long id);
	
	/**
	 * 根据id编辑客户
	 * 
	 * @param customer
	 */
	void updateCustomerById(Customer customer);
	
	/**
	 * 根据id删除用户
	 * 
	 * @param id
	 */
	void deleteCustomerById(Long id);

}
